package edu.jd.movieplatform.admin.a_info.impl;

import edu.jd.movieplatform.admin.a_info.a_InfoDto;
import edu.jd.movieplatform.admin.a_info.a_InfoService;
import edu.jd.movieplatform.admin.a_info.dao.a_InfoDao;
import edu.jd.movieplatform.common.Utils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;

@Service
@Transactional
public class a_InfoServiceImpl implements a_InfoService {
    @Resource
    private a_InfoDao a_infoDao;

    @Override
    public void updInfo(a_InfoDto dto) {
        a_infoDao.updateInfo(dto);
    }

    @Override
    public Map<String, Object> getInfo(a_InfoDto dto) {
        return Utils.getPage(dto,()->a_infoDao.findInfo(dto));
    }


}
